package cn.dust.design.pattern.behavioral.chainofresponsibility;

/**
 * @Author: dust
 * @Date: 2019/11/28 18:37
 */
public class VideoApprover extends Approver{
    @Override
    public void deploy(Course course) {
        if(course.getVideo()!=null){
            System.out.println("有视频，批准");
            if(approver!=null){
                approver.deploy(course);
            }
        }else {
            System.out.println("无视频");
        }
    }
}
